#!/bin/sh
docker pull redis:alpine
mkdir /redisdata
docker run -d --name redis -v /redisdata:/data redis:alpine
cd /root/spiders/"master"
docker build -t csdnmaster .
docker run -d --rm --link redis -p 81:5000 csdnmaster
cd /root/spiders/"slave"
docker build -t csdnslave .
docker run -d --rm --link redis -p 82:5000 csdnslave
